// add by wangshaojun
// tag 列表
const path = require('path')
// const TagNames = ['css', 'js', 'page'];
const TagNames = [
    require('./css'),
    require('./js'),
    require('./page'),
];

export default function(nunjucks_env) {

    const CustomTags = TagNames.map((Tag) => {
        // const tagPath = ``;
        // let Tag = require(tagPath);
        return new Tag();
    });

    CustomTags.forEach((tag) => {
        nunjucks_env.addExtension(tag.tagName, tag);
    });

}
